﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CameraMove : MonoBehaviour
{
    public Transform Player;
    static public int a = 5;
    void Start()
    {

    }

    void Update()
    {
        if (Player != null)
        {
            Vector3 trage = new Vector3(Player.position.x + a, Player.position.y + 4.5F, transform.position.z);
            transform.position = Vector3.Lerp(transform.position, trage, Time.deltaTime * 5);
        }
    }
}
